package br.unifesp.lma.chamada.model.entity;

import java.util.Date;
import java.util.List;
import java.util.ArrayList;

import br.unifesp.lma.chamada.model.Entidade;
import br.unifesp.lma.chamada.model.embed.AlunoPresenca;

import com.googlecode.objectify.annotation.Embed;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Index;

@Entity
public class Aula extends Entidade {

	@Embed
	private List<AlunoPresenca> presencas = new ArrayList<AlunoPresenca>();

	@Index
	private Date data;

	@Index
	private Long disciplinaId;

	public Long getDisciplinaId() {
		return disciplinaId;
	}

	public void setDisciplinaId(Long disciplinaId) {
		this.disciplinaId = disciplinaId;
	}

	public List<AlunoPresenca> getPresencas() {
		return presencas;
	}

	public void setPresencas(List<AlunoPresenca> presencas) {
		this.presencas = presencas;
	}

	public Date getData() {
		return data;
	}

	public void setData(Date data) {
		this.data = data;
	}

}
